﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="TouristAgencyAsp._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        List of our available tours:
    </h2>
    <asp:Repeater ID="toursRepeater" runat="server">
        <ItemTemplate>
            <div class="itemTemp">
                <div class="info">
                    <b>Tour Id: <%# Eval("TourId") %></b>
                    <br />
                    Start Date: <%# Eval("StartDate", "{0:dd/MM/yyyy}") %>
                    <br />
                    End Date: <%# Eval("EndDate", "{0:dd/MM/yyyy}")%>
                    <br />
                    Destination:  <%# string.Format(Eval("Destination.Destination1")) %>                        
                    <br />
                    Price for one person: <%# Eval("Price", "{0:c}") %>
                    <br />
                </div>

                <div class="buttons">
                    <div class="button"><a href="MakeReservation.aspx?tourId=<%# Eval("TourId") %>">Make Reservation</a></div>
                </div>       
            </div>  
        </ItemTemplate>
    </asp:Repeater>  

</asp:Content>
